/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import da.AccountJpaController;
import da.exceptions.NonexistentEntityException;
import entities.Account;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ejb.Stateless;

/**
 *
 * @author QUY_THI
 */
@Stateless
public class EditAccount implements EditAccountLocal {

    public boolean editAccount(Account account) {
        boolean check = false;
        try {
            AccountJpaController control = new AccountJpaController();
            control.edit(account);
            check = true;
        } catch (Exception ex) {
            Logger.getLogger(EditAccount.class.getName()).log(Level.SEVERE, null, ex);
        }
        return check;
    }
}
